<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="./Public/Admin/Css/public.css" />
	<script type="text/javascript" src="./Public/Admin/Js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="./Public/Admin/Js/public.js"></script>
</head>

<body>
	<table class="table">
		<tr>
			<td class="th" colspan="20">分类列表 &nbsp;&nbsp;&nbsp;&nbsp;

		<a href="index.php?m=admin&c=category">全部分类</a>
		{section loop=$parentsCate name=k}
			{if $smarty.section.k.last}
			&gt;&nbsp;{$parentsCate[k].title}&nbsp;&nbsp;
			{else}
			&gt;&nbsp;<a href="index.php?m=admin&c=category&cid={$parentsCate[k].cid}">{$parentsCate[k].title}</a>&nbsp;&nbsp;
			{/if}
		{/section}

			</td>
		</tr>
		<tr class="tableTop">
			<td class="tdLittle0 center">展开</td>
			<td class="tdLittle1">ID</td>
			<td>分类名称</td>
			<td class="tdLtitle7">操作</td>
		</tr>
	{if $category}	
		{foreach from=$category item=v}
		<tr>
			<!-- <td><a href="javascript:void(0)" class="showPlus"></a></td> -->
			<td><a href="./index.php?m=admin&c=category&cid={$v.cid}" class="showPlus"></a></td>
			<td>{$v.cid}</td>
			<td>{$v.title}</td>
			
			<td>
				[<a href="./index.php?m=admin&c=category&a=add_cate&cid={$v.cid}">添加子分类</a>][
				<a href="./index.php?m=admin&c=category&a=edit_cate&cid={$v.cid}">修改</a>][
				<a href="./index.php?m=admin&c=category&a=del_cate&cid={$v.cid}" class="del">删除</a>]
			</td>
		</tr>
		{/foreach}
	{/if}	
	</table>

</body>
</html>